export default ({ http }) => ({
  // 发布圈子
  createCircle(query, response, error) {
    return http.post('/circle', query, response, error, false)
  },
  // 圈子详情
  getCircle(query, response, error) {
    return http.get('/circle', query, response, error, false)
  },
  // 删除圈子
  deleteCircle(query, response, error) {
    return http.delete('/circle', query, response, error, false)
  },
  // 删除圈子评论
  deleteCircleComment(query, response, error) {
    return http.delete('/circle/comment', query, response, error, false)
  },
  // 圈子列表
  getCircleList(query, response, error) {
    return http.get('/circle/list', query, response, error, false)
  },
  // 转载圈子渲染
  getCircleRecircle(query, response) {
    return http.get('/circle/recircle', query, response, {}, false)
  },
  // 转载圈子
  createCircleRecircle(query, response, error) {
    return http.post('/circle/recircle', query, response, error, false)
  },
  // 转载圈子
  createCircleComment(query, response, error) {
    return http.post('/circle/comment', query, response, error, false)
  },
  // 点赞/取消点赞圈子或评论
  createCircleLike(query, response) {
    return http.post('/circle/like', query, response, {}, false)
  }
})
